Skip to content

refactor(test): move remaining Batch A fields to manifest injection - #6535

Merged
JSONbored merged 1 commit into
mainfrom
refactor/batch-a-misc-manifest-migration
Jul 16, 2026
Merged

refactor(test): move remaining Batch A fields to manifest injection#6535
JSONbored merged 1 commit into
mainfrom
refactor/batch-a-misc-manifest-migration

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

Part of the Batch A config-as-code migration (#6442, epic #6440): moves the applicable Batch A fields off DB-backed `upsertRepositorySettings()` test fixture calls onto `upsertRepoFocusManifest()` manifest injection across the 10 remaining Batch A files (`backfill.test.ts`, `api.test.ts`, `public-quality-metrics-route-error.test.ts`, `ci-completion-fork-resume.test.ts`, `safety.test.ts`, `reputation-wiring.test.ts`, `parity-wire.test.ts`, `linked-issue-satisfaction-run.test.ts`, `repo-profile.test.ts`, `actions-fallback-webhook.test.ts`). `resolveEffectiveSettings` already overlays manifest settings over DB settings unconditionally, so this is a pure plumbing move -- identical resolved test behavior, verified per-test.

Deliberately left DB-backed: `badgeEnabled`/`publicQualityMetrics` in the specific tests exercising `loadPublicRepoBadge`/`loadPublicRepoQualityMetrics` (`src/api/routes.ts`) -- those two routes read `getRepositorySettings` directly and bypass the manifest overlay entirely, a deliberate perf tradeoff for unauthenticated, high-frequency public routes. Moving those two fields to manifest-only would silently change what those specific tests exercise.

Also removes now-redundant `LOOPOVER_DRIFT_ISSUE_REPO` overrides that #6493's root-cause fix made obsolete.

Scope

  • Test-only change, 10 files
  • No production code changed

Validation

  • All 10 files run together -- 349/349 passed

@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@JSONbored JSONbored self-assigned this Jul 16, 2026
@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.81%. Comparing base (5e9aad0) to head (6c1a081).
⚠️ Report is 30 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6535      +/-   ##
==========================================
+ Coverage   95.57%   95.81%   +0.24%     
==========================================
  Files         590      589       -1     
  Lines       47170    47049     -121     
  Branches    15007    14962      -45     
==========================================
- Hits        45081    45079       -2     
+ Misses       1297     1176     -121     
- Partials      792      794       +2     
Flag Coverage Δ
shard-1 43.96% <ø> (-0.08%) ⬇️
shard-2 37.17% <ø> (+0.37%) ⬆️
shard-3 32.41% <ø> (+0.08%) ⬆️
shard-4 34.69% <ø> (+0.12%) ⬆️
shard-5 31.36% <ø> (+0.24%) ⬆️
shard-6 45.75% <ø> (+0.39%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 2 files with indirect coverage changes

@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 16, 2026
Moves the applicable Batch A fields (commentMode, checkRunMode,
checkRunDetailLevel, publicSurface, publicSignalLevel, backfillEnabled,
badgeEnabled, publicQualityMetrics) off DB-backed
upsertRepositorySettings() fixture calls onto upsertRepoFocusManifest()
manifest injection, across the 10 remaining Batch A files (backfill,
api, public-quality-metrics-route-error, ci-completion-fork-resume,
safety, reputation-wiring, parity-wire, linked-issue-satisfaction-run,
repo-profile, actions-fallback-webhook) -- a pure plumbing move with
identical resolved test behavior. Deliberately leaves badgeEnabled/
publicQualityMetrics DB-backed in the two tests that specifically
exercise loadPublicRepoBadge/loadPublicRepoQualityMetrics, which bypass
the manifest overlay entirely for performance on hot public routes.

Also removes now-redundant LOOPOVER_DRIFT_ISSUE_REPO overrides that

Part of #6440, part of #6442
@JSONbored
JSONbored force-pushed the refactor/batch-a-misc-manifest-migration branch from f140d1c to 6c1a081 Compare July 16, 2026 12:30
@JSONbored
JSONbored merged commit f76cdf3 into main Jul 16, 2026
13 checks passed
@JSONbored
JSONbored deleted the refactor/batch-a-misc-manifest-migration branch July 16, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant